package Databaus2;

public class Material {
	private String name;
	private int amount;
	private String date;
	private int size;

	public Material(String name, int amount, String date, int size) {
		this.name = name;
		this.amount = amount;
		this.date = date;
		this.size = size;
	}

	public String getMaterialName() {
		return name;
	}

	public int getAmount() {
		return amount;
	}

	public String getLastDate() {
		return date;
	}

	public int getLastSize() {
		return size;
	}

	public String[] getAll() {
		return new String[] { name, String.valueOf(amount), date,
				String.valueOf(size) };
	}
}
